import { Tabs } from "antd";
import OmitLine from "@/components/OmitLine/OmitLine";
import Service from "./Service";
import style from "./style.module.css";
import { MyTabs } from "./styled";
const {TabPane}=Tabs;
export default class AnnouncementList extends Service{

    render = () => {
        let {noticeList,policyFileList}=this.state;
        return (
            <div className={style.AnnouncementList}>
                <div className={style.tabs}>
                <MyTabs defaultActiveKey="1" onChange={()=>{}}>
                    <TabPane tab="通知公告" key="1">
                    {
                                noticeList.map((item,index)=> <div className={style.omit_line}><OmitLine key={index} data={item}/></div>)
                            }
                       
                    </TabPane>
                    <TabPane tab="政策企业" key="2">
                        <div className={style.omit_line}>
                            {
                                policyFileList.map((item,index)=> <div className={style.omit_line}><OmitLine key={index} data={item}/></div>)
                            }
                        </div>
                    </TabPane>
                </MyTabs>
                </div>
            </div>
        )
    }
}